package com.zbs.framework.dao.function.entity;

import com.zbs.framework.dao.base.TreeNode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 功能
 */
@Entity
@Table(name = "mnt_function")
@Getter
@Setter
@NoArgsConstructor
public class Function extends TreeNode {

    /**
     * 标识符
     */
    private String identifier;
    /**
     * 功能名
     */
    private String name;
    /**
     * 描述
     */
    private String description;

    public Function(String treeCode, Long parentId, Integer level,
                    String identifier, String name, String description) {
        super(treeCode, parentId, level);
        this.identifier = identifier;
        this.name = name;
        this.description = description;
    }
}
